#include "signal_base.h"

namespace nsi {
namespace spike {

signal_base::signal_base()
{

}

signal_base::signal_base(const signal_base& other)
  : action_(other.action_)
{

}

signal_base::~signal_base()
{

}

signal_base& signal_base::operator=(const signal_base& other)
{
  action_ = other.action_;
  return *this;
}

bool signal_base::current_signal(int value)
{
  return sigaction(value, 0, &action_) >= 0;
}

bool signal_base::operator()(signal_base::signal_info_type* info,
  void* ucontext)
{
  return false;
}
 

} // namespace spike
} // namespace nsi
